const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    port: 8088,
    // 配置跨域-请求后端的接口
    proxy: {
      "/api": {
        target: "http://localhost:10018", //对应自己的接口
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          "/api": ""
        }
      }
    }
  }
})

